﻿using System.ComponentModel.DataAnnotations.Schema;

namespace Pay.Data.Mapping {
    public partial class UserSoupValueHisMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<UserSoupValueHis> {
        public UserSoupValueHisMap() {
            ToTable("mc_UserSoupValueHis", "dbo");

            HasKey(t => t.Id);
            Property(t => t.Id)
                .HasColumnName("Id")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
            Property(t => t.CreateTime)
                .HasColumnName("CreateTime2")
                .IsRequired();
            HasRequired(t => t.Merchant)
                .WithMany()
                .HasForeignKey(d => d.UserId)
                .WillCascadeOnDelete(false);
        }
    }
}
